package com.qfmy.controller.novel;

import com.qfmy.service.novel.CarouselSlidesService;
import common.result.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.controller.novel
 * @date 2025/6/6
 * @description 小说轮播图
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/app/carouselSlides")
public class CarouselSlidesController {

    /**
     * 注入service
     */
    @Resource
    private CarouselSlidesService carouselSlidesService;

    /**
     * 获取轮播图
     */
    @RequestMapping("/getCarouselSlides")
    public Result<List<String>> getCarouselSlides() {
        List<String> list = carouselSlidesService.getCarouselSlides();
        return Result.ok(list);
    }

}
